﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.ftl"/>
<body>
<#assign active='waitList'/>
<#include "../include/common-top.ftl"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
    <#include "../include/common-menu.ftl"/>
        <div class="main-content">
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="form-search">
                            <form role="form" class="form-inline clearfix" id="form" action="">
                                <div class="input-group col-xs-3">
                                    <span class="input-group-addon">小孩名字</span>
                                    <input type="text" class="form-control" name="name" value="${name!}">
                                </div>
                                <div class="input-group col-xs-3">
                                    <span class="input-group-addon">疫苗名称</span>
                                    <input type="text" class="form-control" name="vaccineName" value="${vaccineName!}">
                                </div>
                                <div class="input-group col-xs-3">
                                    <span class="input-group-addon">批次编号</span>
                                    <input type="text" class="form-control" name="vaccineNumber" value="${vaccineNumber!}">
                                </div>
                            </form>
                            <div class="form-tool btn-group">
                                <button class="btn btn-sm btn-success" form="form">
                                    <i class="icon-search"></i>搜索
                                </button>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>小孩名字</th>
                                    <th>年龄</th>
                                    <th>联系方式</th>
                                    <th>疫苗名称</th>
                                    <th>疫苗编号</th>
                                    <th>最小年龄</th>
                                    <th>最大年龄 </th>
                                    <th>已经接种次数</th>
                                    <th>最大次数</th>
                                    <th>剩余疫苗</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <#list pageInfo.list as item>
                                <tr>
                                    <td>${item.name!}</td>
                                    <td>${item.age}</td>
                                    <td>${item.parentPhone}</td>
                                    <td>${item.vaccineName}</td>
                                    <td>${item.vaccineNumber}</td>
                                    <td>${item.vaccineAgeMin}</td>
                                    <td>${item.vaccineAgeMax}</td>
                                    <td>${item.recordCount}</td>
                                    <td>${item.vaccineCountMax}</td>
                                    <td>${item.vaccineCount}</td>
                                    <td>
                                        <#if item.vaccineCount gt 0>
                                            <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                                <a class="btn btn-xs btn-info" href="/record/invince?childId=${item.id}&vaccineId=${item.vaccineId}">接种</a>
                                            </div>
                                        </#if>
                                    </td>
                                </tr>
                                </#list>
                                </tbody>
                            </table>
                        <#include "../include/table-page.ftl"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<#include "../include/resource-script.ftl"/>

</html>

